package com.springinaction.knights.aop.demo03;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * 介绍不使用AOP的下场
 */
public class KnightMain {

    public static void main(String[] args) {

        ApplicationContext context = new ClassPathXmlApplicationContext("springBean/demo03/knight.xml");
        Knight knight = (BraveKnight) context.getBean("knight");
        knight.embarkOnQuest();
    }
}
